<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/1/2/002
 * Time: 17:10
 */

namespace app\api\validate;


class AddressValidate extends BaseValidate {
    protected $rule = [
        'linkman' => 'require|length:1,20',
        'mobile' => 'require|mobile',
        'province' => 'isPositiveInteger',
        'city' => 'isPositiveInteger',
        'area' => 'isPositiveInteger',
        'address' => 'require',
        'is_default' => 'require|in:0, 1'
    ];
}